package xing.design.pattern.create.adapter;

/**
 * B to A 的适配
 *
 * @author xing
 * @date 2023/2/8 0:16:36
 */
public class AAdapter implements A {
    B b;

    public AAdapter(B b) {
        this.b = b;
    }

    @Override
    public void showA() {
        b.showB();
    }
}
